run_bochs:

bootloader.bin: bootloader.asm
	nasm -f bin $^ -o $@

floppy.img: bootloader.bin
	dd if=/dev/zero of=$@ bs=1440k count=1
	dd if=$^ of=$@ bs=512 count=1 conv=notrunc

run_bochs: floppy.img bochsrc bootloader.bin
	BXSHARE=share DISPLAY=172.24.176.1:0 /usr/local/bin/bochs -f bochsrc

run_qemu: floppy.img bootloader.bin
	qemu-system-x86_64 -fda $<

run_qemu_gdb: floppy.img bootloader.bin
	qemu-system-x86_64 -s -S -fda $<
